//--------------------------------------
// silk-editor-plugin Project
//
// SilkContentAssistPreference.java
// Since: 2010/11/15
//
// $URL$ 
// $Author$
//--------------------------------------
package org.xerial.silk.editor.plugin.preferences;

import org.eclipse.dltk.ui.text.ScriptTextTools;
import org.eclipse.dltk.ui.text.completion.ContentAssistPreference;
import org.xerial.silk.editor.plugin.SilkPlugin;

public class SilkContentAssistPreference extends ContentAssistPreference
{

    static SilkContentAssistPreference instance;

    @Override
    protected ScriptTextTools getTextTools() {
        return SilkPlugin.getDefault().getTextTools();
    }

    public static ContentAssistPreference getDefault() {
        if (instance == null) {
            instance = new SilkContentAssistPreference();
        }
        return instance;
    }

}
